import {Component} from '@angular/core';


@Component({
  selector:'go-back',
  template:`
    <nav class="fixed-nav-box bg">
    <div class="nav-wrapper">
      <div>
        <a href="javascript:;" class="hoverLink" (click)="go()" ><i class="fa fa-angle-left pr5"></i>{{'返回'|translate}}</a>
      </div>
    </div>
  </nav>

  `
})

export class GoBackComponent{


  constructor(){}

  go(){
    window.history.go(-1);
  }
}
